import request from '@/utils/request'

// 查询标段列表
export function listLot(query) {
  return request({
    url: '/basic/lot/list',
    method: 'get',
    params: query
  })
}

// 查询标段列表VO
export function listLotVo(query) {
  return request({
    url: '/basic/lot/listVo',
    method: 'get',
    params: query
  })
}

// 查询标段详细
export function getLot(code) {
  return request({
    url: '/basic/lot/' + code,
    method: 'get'
  })
}

// 新增标段
export function addLot(data) {
  return request({
    url: '/basic/lot',
    method: 'post',
    data: data
  })
}

// 修改标段
export function updateLot(data) {
  return request({
    url: '/basic/lot',
    method: 'put',
    data: data
  })
}

// 删除标段
export function delLot(code) {
  return request({
    url: '/basic/lot/' + code,
    method: 'delete'
  })
}

// 查询项目基本信息列表
export function listProject(query) {
  return request({
    url: '/basic/project/list',
    method: 'get',
    params: query
  })
}

// 查询项目基本信息详细
export function getProject(projectId) {
  return request({
    url: '/basic/project/' + projectId,
    method: 'get'
  })
}